import { createSlice } from '@reduxjs/toolkit';
import { num } from './state';

const comBSlice = createSlice({
  name: 'comB',
  initialState: num,
  reducers: {
    increment: (state, action) => state + action.payload,
    decrement: (state, action) => state - action.payload
  }
})

export default comBSlice;